package com.yunfeisoft.business.dao.impl.postgres;

import com.applet.base.ServiceDaoImpl;
import com.yunfeisoft.business.dao.inter.CmsTopicDao;
import com.yunfeisoft.business.model.CmsTopic;
import com.applet.sql.builder.WhereBuilder;
import com.applet.utils.Page;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * ClassName: CmsTopicDaoImpl
 * Description: 话题表Dao实现
 * Author: Jackie liu
 * Date: 2020-06-02
 */
@Repository
public class CmsTopicDaoImpl extends ServiceDaoImpl<CmsTopic, String> implements CmsTopicDao {

    @Override
    public Page<CmsTopic> queryPage(Map<String, Object> params) {
       WhereBuilder wb = new WhereBuilder();
       if (params != null) {
           initPageParam(wb, params);
       }
       return queryPage(wb);
    }
}